package d1;

public class Test1 {
    public static void main(String[] args)
            throws CloneNotSupportedException {
        Person person1 = new Person(10,"zhangsan");
        Person person2 = (Person) person1.clone();//最开始点不出来
        System.out.println("修改前："+person1.m.money);
        System.out.println("修改前："+person2.m.money);
        person2.m.money = 99.99;
        System.out.println("修改后："+person1.m.money);
        System.out.println("修改后："+person2.m.money);
    }
}
